import { ref, h } from '../../lib/min-vue.esm.js'

export const App = {
  setup() {
    const count = ref(0)
    const click = () => {
      console.log('click')
      count.value++
    }
    return {
      count,
      click
    }
  },
  render() {
    return h('div', {}, [
      h('div', {}, 'count: ' + this.count),
      h('button', { onClick: this.click }, 'click')
    ])
  }
}
